home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20020314-20021006 / 000363_mswarbrick@rentokil.com_Mon Sep 16 09:54:17 EDT 2002.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  49 lines

  1. Article: 13696 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!bloom-beacon.mit.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
  3. From: mswarbrick@rentokil.com (Mark Swarbrick)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: scripting to a serial sms modem - idiot question!
  6. Date: 16 Sep 2002 06:37:17 -0700
  7. Organization: http://groups.google.com/
  8. Lines: 31
  9. Message-ID: <e516d9ec.0209160537.450ca7b@posting.google.com>
  10. NNTP-Posting-Host: 213.2.60.82
  11. Content-Type: text/plain; charset=ISO-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-Trace: posting.google.com 1032183437 3265 127.0.0.1 (16 Sep 2002 13:37:17 GMT)
  14. X-Complaints-To: groups-abuse@google.com
  15. NNTP-Posting-Date: 16 Sep 2002 13:37:17 GMT
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13696
  17.  
  18. Hello all
  19.  
  20. What I am trying to do is this:
  21.  
  22. I have a seimens sms modem connected to /dev/ttyS0 and i can
  23. communicate with it fine on the command line.
  24.  
  25. A website is created to allow users on our intranet to sms other
  26. users, so it's simply two dialogue boxes with the number and the
  27. message. This then gets written to a file which is called in the
  28. script and wrapped with the necessary commands.
  29.  
  30. All i need to be run is this script
  31.  
  32. <start kermit>
  33. set modem type usr
  34. set line /dev/ttyS0
  35. set speed 9600
  36. set carrier-watch off
  37. connect
  38. at+cmgf=1
  39. at+cmgs="+44123456789"
  40. <send ctrl+z>
  41. <then exit cleanly out of kermit>
  42.  
  43. How can i do this as kermit goes into interactive mode as soon as i
  44. issue the connect command! How can i automate this?
  45.  
  46. many thanks gurus!
  47.  
  48. mark
  49.